package com.wangnian.batchdemo.mapper;

import com.wangnian.batchdemo.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {

    void insertUser(User user);

    void insertUsersByOneSql(@Param("users")List<User> users);

    void updateUser(User user);

    void updateUserByOneSql(@Param("users")List<User> users);


}
